package com.wzh.live.dao;

import com.wzh.live.entity.LiveGoodsEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 
 * 
 * @author wzh
 * @email 1281204121@qq.com
 * @date 2022-03-14 14:10:52
 */
@Mapper
public interface LiveGoodsDao extends BaseMapper<LiveGoodsEntity> {

    LiveGoodsEntity getByLiveIdAndGoodsId(@Param("activityId") Long activityId, @Param("goodsId") Long goodsId);

    Integer updStockById(@Param("activityId") Long activityId, @Param("goodsId") Long goodsId, @Param("stockCount") Integer stockCount);
}
